package com.fqxl.labour.controller;

import com.fqxl.labour.domain.LabourUploadCard;
import com.fqxl.labour.service.UploadCardService;
import com.fqxl.labour.untils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("UploadCard")
@Api(tags = "上传身份证")
public class UploadCardController {

    @Autowired
    private UploadCardService uploadCardService;

    /**
     * 添加身份证
     * @param labourUploadCard
     * @return
     */
    @ApiOperation("添加身份证")
    @PostMapping("/addUploadCard")
    public R addUploadCard(@RequestBody LabourUploadCard labourUploadCard){
        return uploadCardService.addUploadCard(labourUploadCard);
    }

}
